<template>
  <view>
    <!-- 导航栏 -->
    <view class="nav-bar">
      <view class="nav-left" @click="goBack">
        <text class="nav-back-icon">&lt;</text>
      </view>
      <view class="nav-title">活动详情</view>
      <view class="nav-right">
        <text class="nav-icon">⋯</text>
        <text class="nav-divider">|</text>
        <text class="nav-icon">⊙</text>
      </view>
    </view>
    
    <view class="container">
      <!-- 蓝色背景区域 -->
      <view class="blue-background"></view>
    
    <!-- 浮层内容：两张卡片 -->
    <view class="floating-content">
      <!-- 信息卡片 -->
      <view class="card info-card">
        <view class="info-row">
          <text class="label">标题：</text>
          <text class="value">洗车优惠活动开始领取了</text>
        </view>
        <view class="info-row">
          <text class="label">发布人：</text>
          <text class="value">大美汽修</text>
        </view>
        <view class="info-row">
          <text class="label">发布时间：</text>
          <text class="value">2023/03/10 11:09</text>
        </view>
        <view class="info-row">
          <text class="label">审核状态：</text>
          <text class="value">待审核 / 审核通过 / 审核不通过</text>
        </view>
        <view class="info-row">
          <text class="label">审核时间：</text>
          <text class="value">2023/03/10 15:09</text>
        </view>
        <view class="info-row">
          <text class="label">审核说明：</text>
          <text class="value"></text>
        </view>
      </view>

      <!-- 内容卡片 -->
      <view class="card content-card">
        <view class="info-row align-start">
          <text class="label">发布内容：</text>
          <text class="value multiline">活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容</text>
        </view>
        <view class="info-row align-start">
          <text class="label">图片：</text>
          <view class="value">
            <image src="/static/车.jpg" class="content-image" mode="aspectFill"></image>
          </view>
        </view>
      </view>
    </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  methods: {
    // 返回上一页
    goBack() {
      uni.navigateBack();
    }
  }
}
</script>

<style scoped>
/* 导航栏样式 */
.nav-bar {
  height: 120rpx;
  background: #1f78ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32rpx;
  z-index: 1000;
  box-sizing: border-box;
}

.nav-left {
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-left:active {
  transform: scale(0.95);
}

.nav-back-icon {
  color: #ffffff;
  font-size: 60rpx;
  font-weight: 200;
  line-height: 1;
}

.nav-title {
  color: #ffffff;
  font-size: 32rpx;
  font-weight: 500;
  padding-left: 40rpx;
  flex: 1;
  text-align: center;
}

.nav-right {
  display: flex;
  align-items: center;
  background: rgba(1, 1, 1, 0.2);
  border-radius: 50rpx;
  padding: 10rpx 20rpx;
  gap: 16rpx;
}

.nav-icon {
  color: #ffffff;
  font-size: 32rpx;
  font-weight: 600;
}

.nav-divider {
  color: #ffffff;
  font-size: 20rpx;
  opacity: 0.8;
}

.container {
  position: relative;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-top: 120rpx; /* 为固定导航栏留出空间 */
}

.blue-background {
  width: 100%;
  height: 300rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.main-content { display: none; }

.floating-content {
  position: absolute;
  top: 150rpx; /* 调整位置，考虑导航栏高度 */
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
}

.card {
  background-color: #ffffff;
  border-radius: 20rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  padding: 32rpx;
  box-sizing: border-box;
}

.content-card { margin-top: 24rpx; }

.info-section {
  margin-bottom: 30rpx;
}

.title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333333;
  margin-bottom: 30rpx;
  text-align: center;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 20rpx;
}
.align-start { align-items: flex-start; }

.label {
  font-size: 28rpx;
  color: #666666;
  min-width: 150rpx;
}

.value {
  font-size: 28rpx;
  color: #333333;
  flex: 1;
  margin-left: 24rpx;
}

.status-pending {
  color: #ff9500;
  font-weight: bold;
}

.content-section { border-top: 0; padding-top: 0; }

.content-text {
  font-size: 30rpx;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 30rpx;
  text-align: justify;
}

.image-container { display: none; }

.content-image {
  width: 440rpx;
  height: 260rpx;
  border-radius: 12rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
}
</style>